var wp = google.gears.workerPool;
wp.onmessage = function(a, b, message) {
	var pow = 1;
	for (var i = 2; i <= message.body; i++) {
		pow = pow * i;
	}
	wp.sendMessage([message.body , pow], message.sender);
};